#include "employee.h"

Employee::Employee(const char* str,bool sex,int age,int id)
{
	m_nAge = age;
	strcpy(m_strName,str);
	m_bGender = sex;
	m_nld = id;
}

Employee::Employee(Employee& that)
{
	m_nAge = that.m_nAge;
	strcpy(m_strName,that.m_strName);
	m_bGender = that.m_bGender;
	m_nld = that.m_nld;
}

Employee& Employee::operator = (Employee& that)
{
	if(this != &that)
	{
		m_nAge = that.m_nAge;
		strcpy(m_strName,that.m_strName);
		m_bGender = that.m_bGender;
		m_nld = that.m_nld;
	}

	return *this;
}

int Employee::getId(void)
{
	return m_nld;
}

const char* Employee::getName(void)
{
	return m_strName;
}

bool Employee::getSex(void)
{
	return m_bGender;
}

int Employee::getAge(void)
{
	return m_nAge;
}

void Employee::setName(const char* str)
{
	strcpy(m_strName,str);
}

void Employee::setSex(bool sex)
{
	m_bGender = sex;
}

void Employee::setAge(int age)
{
	m_nAge = age;
}